package com.myjob.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.shopgoods.common.core.annotation.Excel;
import com.shopgoods.common.core.web.domain.BaseEntity;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 品牌对象 sg_type
 *
 * @author shopgoods
 * @date 2024-11-12
 */
@TableName("sg_type")
public class SgType implements Serializable
{

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 品牌编号 */
    @TableId(type = IdType.AUTO)
    private Long typeId;

    /** 品牌名称 */
    @NotNull(message = "品牌名称不能为空")
    @Excel(name = "品牌名称")
    private String typeName;

    /** 品牌首字母 */
    @NotNull(message = "品牌首字母不能为空")
    @Pattern(regexp = "^[A-Z]$",message = "品牌首字母只能是字母")
    @Excel(name = "品牌首字母")
    @TableField  //  添加了这个注解
    private String typeInitial;

    /** 品牌LOGO */
    @NotNull(message = "品牌LOGO,不能为空")
    @Excel(name = "品牌LOGO")
    @TableField  //  添加了这个注解
    private String typeLogo;

    /** 品牌专区大图 */
    @NotNull(message = "品牌专区大图,不能为空")
    @Excel(name = "品牌专区大图")
    @TableField  //  添加了这个注解
    private String typePic;

    /** 品牌故事 */
    @NotNull(message = "品牌故事,不能为空")
    @Excel(name = "品牌故事")
    @TableField  //  添加了这个注解
    private String typeText;

    /** 排序 */
    @NotNull(message = "排序,不能为空")
    @Excel(name = "排序")
    @TableField  //  添加了这个注解
    private Long typeSort;

    /** 是否显示 */
    @NotNull(message = "是否显示,不能为空")
    @Excel(name = "是否显示")
    @TableField  //  添加了这个注解
    private Long typeDisplay;

    /** 品牌制造商 */
    @NotNull(message = "品牌制造商,不能为空")
    @Excel(name = "品牌制造商")
    @TableField  //  添加了这个注解
    private Long typeMaker;

    public void setTypeId(Long typeId)
    {
        this.typeId = typeId;
    }

    public Long getTypeId()
    {
        return typeId;
    }
    public void setTypeName(String typeName)
    {
        this.typeName = typeName;
    }

    public String getTypeName()
    {
        return typeName;
    }
    public void setTypeInitial(String typeInitial)
    {
        this.typeInitial = typeInitial;
    }

    public String getTypeInitial()
    {
        return typeInitial;
    }
    public void setTypeLogo(String typeLogo)
    {
        this.typeLogo = typeLogo;
    }

    public String getTypeLogo()
    {
        return typeLogo;
    }
    public void setTypePic(String typePic)
    {
        this.typePic = typePic;
    }

    public String getTypePic()
    {
        return typePic;
    }
    public void setTypeText(String typeText)
    {
        this.typeText = typeText;
    }

    public String getTypeText()
    {
        return typeText;
    }
    public void setTypeSort(Long typeSort)
    {
        this.typeSort = typeSort;
    }

    public Long getTypeSort()
    {
        return typeSort;
    }
    public void setTypeDisplay(Long typeDisplay)
    {
        this.typeDisplay = typeDisplay;
    }

    public Long getTypeDisplay()
    {
        return typeDisplay;
    }
    public void setTypeMaker(Long typeMaker)
    {
        this.typeMaker = typeMaker;
    }

    public Long getTypeMaker()
    {
        return typeMaker;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("typeId", getTypeId())
                .append("typeName", getTypeName())
                .append("typeInitial", getTypeInitial())
                .append("typeLogo", getTypeLogo())
                .append("typePic", getTypePic())
                .append("typeText", getTypeText())
                .append("typeSort", getTypeSort())
                .append("typeDisplay", getTypeDisplay())
                .append("typeMaker", getTypeMaker())
                .toString();
    }
}
